package com.shangfutai.android.keymonitoring

import android.os.Build
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        if (Build.VERSION.SDK_INT >= 26) {
            KeyMonitoringService.start(this)
        }

        moveTaskToBack(true)

    }
}